﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PDX
{
    /// <summary>
    /// An EventArgs class that carries some generic data with it.
    /// </summary>
    /// <typeparam name="T">the type of the <see cref="Data"/>.</typeparam>
    public class GenericEventArgs<T> : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GenericEventArgs&lt;T&gt;"/> class.
        /// </summary>
        /// <param name="data">The data.</param>
        public GenericEventArgs(T data)
        {
            this.Data = data;
        }

        /// <summary>
        /// Gets the data.
        /// </summary>
        public T Data { get; private set; }
    }
}
